﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Painter.Model
{
    public class RectCollection : Collection<System.Windows.Rect>
    {
        public List<System.Windows.Rect> mRects = new List<System.Windows.Rect>();
        public RectCollection(IEnumerable<System.Windows.Rect> rect)
        {
            mRects = rect.ToList();
        }
        public new void Add(System.Windows.Rect rect)
        {
            mRects.Add(rect);
            base.Add(rect);
        }
    }
}
